From de5239f60b6503415713de53b4c6950f6bc6869c Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Mon, 2 Jun 2025 17:04:34 -0400 Subject: [PATCH] libtest: Quiet some output Otherwise there's a lot of test spam. Signed-off-by: Colin Walters --- tests/libtest.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/libtest.sh b/tests/libtest.sh index f8a7dc74..e1eb1377 100755 --- a/tests/libtest.sh +++ b/tests/libtest.sh @@ -42,6 +42,8 @@ PATH="$PATH:/usr/sbin:/sbin" # libtest_exit_cmds+=(expr). libtest_exit_cmds=() run_exit_cmds() { + # Quiet termination + set +x for expr in "${libtest_exit_cmds[@]}"; do eval "${expr}" || true done @@ -747,8 +749,9 @@ which_gpg () { } libtest_cleanup_gpg () { + set +x local gpg_homedir=${1:-${test_tmpdir}/gpghome} - gpg-connect-agent --homedir "${gpg_homedir}" killagent /bye || true + gpg-connect-agent --homedir "${gpg_homedir}" killagent /bye &>/dev/null || true } libtest_exit_cmds+=(libtest_cleanup_gpg) -- 2.30.2